import requests
from bs4 import BeautifulSoup

url = "https://wandou.la/hot/movie"

ua = {"user-agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"}

rq = requests.get(url, headers = ua)

html = rq.content.decode("utf-8")

soup = BeautifulSoup(html, "lxml")

#print(soup.prettify())#打印网站内容

web_title = soup.title.string

print(web_title)
